package com.zhijiang.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhijiang.hospital.entity.InpatientOperationData;
import com.zhijiang.hospital.entity.dto.InpatientOperationDataDto;
import com.zhijiang.util.BaseQuery;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author 75936
 * @version 1.0
 * @project zhijiang_hospital-data
 * @description
 * @date 2022-10-25 10:40:40
 */
public interface InpatientOperationDataService extends IService<InpatientOperationData> {
    List<InpatientOperationDataDto> loadAll();

    InpatientOperationData loadOne(String id);

    void addOne(InpatientOperationData inpatientOperationData);

    String writeExcel(HttpServletResponse response) throws IOException;

    void readExcel(MultipartFile file) throws IOException;

    Page<InpatientOperationData> loadPageList(BaseQuery baseQuery);

    List<String> loadDept();

    List<String> loadPatientNumberByDay(BaseQuery baseQuery);

    List<String> loadPatientNumberOfDay();

    List<String> loadPatientNumberOfMonth();

    List<String> loadPatientNumberOfYear();

    Page<List<InpatientOperationData>> findinpatientOperationData(BaseQuery baseQuery);
}
